package negocio.controlador;

import basica.academico.Grade;
import dados.interfaces.IDAOGrade;
import dados.persistencias.DAOGrade;

public class ControladorGrade {

	private IDAOGrade daoGrade;
	
	public ControladorGrade(){
		this.daoGrade = new DAOGrade();
	}
	
	public void cadastrarGrade(Grade grade){
		this.daoGrade.inserir(grade);
	}
	
	public void alterarGrade(Grade grade){
		this.daoGrade.alterar(grade);
	}
	
	public void removerGrade(Grade grade){
		this.daoGrade.remover(grade);
	}
	
	public Grade pesquisarGrade(Grade grade){
		return this.daoGrade.consultarPorId(grade.getCodigo());
	}
}
